package com.qf.controller;

import com.qf.service.MailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lenovo
 * @version V1.0
 * @Date 2021/11/26 16:47
 */
@RestController
public class WebController {

    @Autowired
    private MailService mailService;


    @RequestMapping(value = "/monitor/send",method = RequestMethod.GET)
    public String sendMsg(){
        String res = "success";
        mailService.send(res);
        return res;
    }
}
